Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make activity changes textbox readonly #1370

Merged
merged 7 commits into from
Jan 14, 2025
Merged

Conversation

hahn-kev
Copy link
Collaborator

closes #1329 #1331

Taking a look at the history dialog in readonly mode it looks strange as it feels hard to tell what's data and what's not:
image

I think it looks better with the borders, it's not obvious that it's readonly, but trying to edit will make that obvious.
image

@myieye what do you think?

I also noticed a bug that the Complex Forms field is empty in history view so I've made #1369 to track that issue

@hahn-kev hahn-kev requested a review from myieye January 13, 2025 06:45
@hahn-kev hahn-kev linked an issue Jan 13, 2025 that may be closed by this pull request
Copy link

github-actions bot commented Jan 13, 2025

UI unit Tests

12 tests  ±0   12 ✅ ±0   0s ⏱️ ±0s
 4 suites ±0    0 💤 ±0 
 1 files   ±0    0 ❌ ±0 

Results for commit c25bd3c. ± Comparison against base commit 7595e0b.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Jan 13, 2025

C# Unit Tests

104 tests  +1   104 ✅ +1   5s ⏱️ ±0s
 16 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit c25bd3c. ± Comparison against base commit 7595e0b.

♻️ This comment has been updated with latest results.

@myieye
Copy link
Contributor

myieye commented Jan 13, 2025

@hahn-kev So, I pushed this. What do you think? Right is readonly.

I basically copied IBM's Carbon design system.

image

@alex-larkin
Copy link

Right is readonly.

I see that on the right there are no buttons to add or delete. Also, that there is not a different background behind the text.

I think some people may still miss those clues. If someone tries to edit that text, is there any way the app could show a kind of toaster notification in the bottom middle that the text is read-only? Ideally it would auto-dissapear after a few seconds.

Paratext also does this, but it's a bit wordy.
image

@hahn-kev
Copy link
Collaborator Author

@alex-larkin at the moment the read only view is used in the history dialog. It seems a bit redundant to say you can't change history. But I like the idea of a toast, especially for the viewer (on lexbox) which is all readonly.

Tim that looks great, I'm going to try to merge this in, also you made a fix for the testing view, that will also be required for the viewer... some day we won't forget you viewer.

@hahn-kev hahn-kev merged commit 31cf726 into develop Jan 14, 2025
20 of 21 checks passed
@hahn-kev hahn-kev deleted the bug/activity-is-editable branch January 14, 2025 03:26
@alex-larkin
Copy link

Oh okay. I thought this was for accounts with read-only permissions. For someone whose navigated to the history it should be fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

history dialog is not readonly activity changes text is editable
3 participants